package com.jackrain.nea.web.model;

import lombok.Data;
import org.apache.commons.lang3.builder.EqualsBuilder;

import java.io.Serializable;


@Data
public class MenuObject implements Serializable{

    private static final long serialVersionUID = -1;

    private int id;

    private String type;

    private String value;

    private String label;

    private String url;

    private String webaction;

    @Override
    public boolean equals(Object o) {
        if (o == null) {
            return false;
        }
        if (o == this) {
            return true;
        }
        if (o.getClass() != getClass()) {
            return false;
        }
        MenuObject e = (MenuObject) o;
        return new EqualsBuilder()
                .append(getType(), e.getType())
                .append(getId(), e.getId())
                .isEquals();
    }
}
